package com.xique.door.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xique.door.bean.domain.BuildFloor;
import com.xique.door.bean.domain.Visitor;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 楼层Mapper接口
 * 
 * @author caogq
 * @date 2021-09-09
 */
@Repository
public interface BuildFloorMapper  extends BaseMapper<BuildFloor>
{
    /**
     * 查询楼层
     * 
     * @param id 楼层ID
     * @return 楼层
     */
    public BuildFloor selectBuildFloorById(Long id);

    /**
     * 查询楼层列表
     * 
     * @param buildFloor 楼层
     * @return 楼层集合
     */
    public List<BuildFloor> selectBuildFloorList(BuildFloor buildFloor);

    /**
     * 新增楼层
     * 
     * @param buildFloor 楼层
     * @return 结果
     */
    public int insertBuildFloor(BuildFloor buildFloor);

    /**
     * 新增楼层
     *
     * @param buildFloors 楼层
     * @return 结果
     */
    int insertBuildFloors(@Param("list") List<BuildFloor> buildFloors);

    /**
     * 修改楼层
     * 
     * @param buildFloor 楼层
     * @return 结果
     */
    public int updateBuildFloor(BuildFloor buildFloor);

    /**
     * 删除楼层
     * 
     * @param id 楼层ID
     * @return 结果
     */
    public int deleteBuildFloorById(Long id);

    /**
     * 批量删除楼层
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteBuildFloorByIds(String[] ids);
}
